package firstcontent.heap;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

/**
 * @Author: fxy
 * @Date: 2022/02/14/8:35
 * @Description:
 * -Xms600m -Xmx600m
 */
public class HeapInstanceTest {

    byte[] buffer = new byte[new Random().nextInt(1024*200)];


    public static void main(String[] args) {
        List list = new ArrayList<HeapInstanceTest>();
        while(true){
            list.add(new HeapInstanceTest());
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
